import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const clc = () => {
  let hash = window.location.hash
  hash = hash.replace('#', '')
  return hash || 'Home'
}
export default new Vuex.Store({
  strict: true,
  state: {
    active: clc(),
  },
  mutations: {
    RESET_ACT(state, key) {
      state.active = key
      window.location.hash = key
    },
  },
})
